<table class="table table-bordered text-nowrap bg-light zero3-list-table wms-table ">
    <thead class="sticky-top" style="top: 42px; z-index: 9">
    <tr class="text-center table-primary">
        <th scope="col"> 序号</th>
        <th scope="col"><span>商品名称</span></th>
        <th scope="col"><span>商品编号</span></th>
        <th scope="col"><span>规格名称</span></th>
        <th scope="col"><span>采购数量</span></th>
        <th scope="col"><span>单价</span></th>
        <th scope="col"><span>总价</span></th>
        <th scope="col"><span>操作</span></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let item of tableData.data;let i = index" [ngClass]="{'row-selected': isSelected(item.id)}"
        (click)="dealSelected(item)">
        <td class="table-tr-num">{{i + 1}}</td>
        <td>{{item?.goodsName}}</td>
        <td>{{item?.goodsSerNum}}</td>
        <td>{{item?.goodsSpecificationName}}</td>
        <td>
            <input  [(ngModel)]="item.goodsNum" type="text" class="form-control" placeholder="采购数量">
        </td>
        <td>
            <input  [(ngModel)]="item.singlePrice" type="text" class="form-control" placeholder="请输入单价">
        </td>
        <td>
            <input   [(ngModel)]="item.totalPrice"  type="text" class="form-control" placeholder="请输入总价">
        </td>
        <td>
            <button type="button" (click)="delRow(item,i)" class="btn  btn-outline-primary btn-sm btn-space">删除</button>
        </td>
    </tr>
    </tbody>
</table>

